/*
 * HTMLNodeSample1.java
 * This file is part of the <a href="http://code.google.com/p/pux">PUX Framework</a>
 *
 * Copyright 2008 by <a href="mailto:jfendler@polytechnic.edu.na">Jens Fendler</a>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package de.teamskill.pux.samples.gui;

import java.io.IOException;

import org.jdom.JDOMException;

import de.teamskill.pux.engine.Network;
import de.teamskill.pux.script.NetworkBuilder;

/**
 * HTMLNodeSample1
 * 
 * @author <a href="mailto:jfendler@polytechnic.edu.na">Jens Fendler</a>
 * 
 */
public class HTMLNodeSample1 {

	public HTMLNodeSample1() {
		super();
	}

	/**
	 * start
	 * 
	 * @throws IOException
	 * @throws JDOMException
	 * 
	 */
	private void start() throws JDOMException, IOException {
		NetworkBuilder nb = new NetworkBuilder(getClass().getResourceAsStream("HTMLNodeSample1.xml"));
		Network n = nb.createNetwork();
		n.start();
	}

	/**
	 * main
	 * 
	 * @param args
	 * @throws IOException
	 * @throws JDOMException
	 */
	public static void main(String[] args) throws JDOMException, IOException {
		HTMLNodeSample1 s = new HTMLNodeSample1();
		s.start();
	}

}
